home *** CD-ROM | disk | FTP | other *** search
/ JCSM Shareware Collection 1996 September / JCSM Shareware Collection (JCS Distribution) (September 1996).ISO / word_prc / njs30exe.zip / NJSTAR1.DOC < prev    next >
Text File  |  1994-11-20  |  59KB  |  1,272 lines

  1.                  ##             ##                             TM
  2.                  ##             ## #########         ##########
  3.            ###############      ##   ##  ##          ##      ##
  4.                  ##             ##   ##  ##          ##******##
  5.                  ##           ###### ## ##           ##      ##
  6.             #############       ##   ## #            ##########
  7.             ## ##   ## ##      ###  ##  #####            ##
  8.             ##  #   #  ##      #### ##    ##         ##  ##
  9.             ##   # #   ##      #### ##    ##         ##  ##
  10.             ## ####### ##     # ### ## # ##          ##########
  11.             ##   ##    ##     # ##  ## ####         ##   ##
  12.             ## ####### ##       ## ##   ##         ##    ##
  13.             ##   ##    ##       ## ##  ####       #  ##########
  14.             ##   ##    ##       ## #  ## ###             ##
  15.             ##   ##  ####       ## # ##   ###            ##
  16.             #          #        # # #      #      ##############
  17.  
  18.              NJStar(tm) - A Chinese Word Processor  Version 3.0
  19.  
  20.                                USER MANUAL
  21.  
  22.                      Written by Huijie Chen & Hongbo Ni
  23.                         Edited by Dr. Hans Schneider
  24.            Copyright (C) Hongbo Ni 1991-1994. All Rights Reserved.
  25.  
  26. ============================================================================
  27.  
  28.  
  29.                               TABLE OF CONTENTS
  30.  
  31. 0. SOFTWARE LICENSE
  32. ..........................................................................
  33.     You must read this section first!
  34.  
  35. 1. ABOUT THIS MANUAL
  36. ..........................................................................
  37.     Manual structure   Conventions
  38.  
  39. 2. NJSTAR OVERVIEW
  40. ..........................................................................
  41.     Overview   Basic Concepts
  42.  
  43. 3. PROGRAM USAGE
  44. ..........................................................................
  45.     NJSTAR.EXE   Command line options   Environmental variables
  46.  
  47. 4. MENU AND HELP
  48. ..........................................................................
  49.     Menu tree   Quick help   Chinese/English switch
  50.  
  51. 5. FILE MANAGEMENT
  52. ..........................................................................
  53.     Open file    Save file    Quit    Multiple file operation   DOS shell
  54.  
  55. 6. CURSOR MOVEMENT
  56. ..........................................................................
  57.     Arrow keys   Quick move
  58.  
  59. 7. FILE EDITING
  60. ..........................................................................
  61.     Basic editing   Screen display   Current status   Keyboard
  62.  
  63. 8. SEARCH AND REPLACE
  64. ..........................................................................
  65.     Search   Replace
  66.  
  67. 9. BLOCK OPERATION
  68. ..........................................................................
  69.     Mark a block   Copy   Paste   Block to file
  70.  
  71. 10. INPUTTING CHINESE
  72. ..........................................................................
  73.     Pinyin    LianXiang    Online Pinyin    Zhuyin    ASCII
  74.     Other input methods    LXGB2DIC.EXE
  75.  
  76. 11. TOOLS
  77. ..........................................................................
  78.     Dictionary   Glossary   Hanzi info   LianXiang update
  79.  
  80. 12. MACRO COMMANDS
  81. ..........................................................................
  82.     Create macro   Use macro   Macro text file    NJMAC.EXE
  83.  
  84. 13. PRINTING
  85. ..........................................................................
  86.     NJPRN.EXE   Printing format commands   PRINTPS.EXE
  87.  
  88. 14. FILE CONVERSION
  89. ..........................................................................
  90.     Big5 file   zW file   Hz file   PCX file   GB24PCX.EXE   code output
  91.  
  92. 15. SYSTEM CONFIGURATION
  93. ..........................................................................
  94.     NJCONFIG.EXE   Video setting   Key file   Printer drivers
  95.  
  96. 16. FONT UTILITIES
  97. ..........................................................................
  98.     CCPRINT.EXE   CCFONT.EXE   NJ24.EXE
  99.  
  100. APPENDIXES
  101. ..........................................................................
  102.      1: List of NJStar Configurable Functions
  103.      2: List of NJStar Key Names
  104.      3: Summary of NJStar Location-Sensitive Mouse Functions
  105.      4: Table of Contents of Chinese Manual
  106.  
  107.  
  108. =============================================================================
  109.  
  110. 0. SOFTWARE LICENSE
  111. ===================
  112.  
  113. This Software license contains of three sections. Please read it  carefully.
  114. The term "NJStar Owner" refers to Hongbo Ni and Hongbo Data Systems only.
  115.  
  116. Section I.
  117.  
  118. This section is applicable to  both  NJStar  Shareware  Version  and  NJStar
  119. Registered Version.
  120.  
  121. 1.1 NJStar is not and has never been public domain software, nor is it  free
  122.     software. It is NJStar owner's property.
  123.  
  124. 1.2 No one may modify or patch the  NJStar  executable  files  in  any  way,
  125.     including but not limited to decompiling,  disassembling,  or  otherwise
  126.     reverse engineering the program.
  127.  
  128. 1.3 The use of  NJStar,  except  for  the  initial  30-day  trial,  requires
  129.     registration. The use of unlicensed copies  of  NJStar  by  any  person,
  130.     business, corporation, government agency or any other entity is strictly
  131.     prohibited.
  132.  
  133. Section II.
  134.  
  135. This section is applicable to NJStar Shareware Version.
  136.  
  137. 2.1 Any use of NJStar Shareware Version  is  the  implication  of  a  user's
  138.     acceptance of the terms and conditions listed in this license.
  139.  
  140. 2.2 Non-registered users  are  granted  a  limited  license  to  use  NJStar
  141.     Shareware Version on a 30-day trial basis for the purpose of determining
  142.     whether NJStar is suitable for their needs.
  143.  
  144. 2.3 A limited license is granted to copy and distribute NJStar only for  the
  145.     trial use of others, subject to the  above  limitations,  and  also  the
  146.     following:
  147.  
  148.      A) NJStar must be copied in unmodified form,  complete  with  the  file
  149.         containing  this  license  information  and  the   file   containing
  150.         registration information.
  151.  
  152.      B) The full machine-readable NJStar documentation must be also included
  153.         with each copy.
  154.  
  155.      C) NJStar may not be distributed in conjunction with any other  product
  156.         without a specific license to do so from the NJStar owner.
  157.  
  158.      D) No fee, charge, or other compensation may be requested or  accepted,
  159.         except as authorized below:
  160.  
  161.         a) Operators of electronic bulletin board systems (sysops) may  make
  162.            NJStar available for  downloading  only  as  long  as  the  above
  163.            conditions are met. An overall or time-dependent charge  for  the
  164.            use of the bulletin board system is permitted as long as there is
  165.            not a specific charge for the download of NJStar.
  166.  
  167.         b)  ASP  vendors  can  distribute  NJSTAR  without   obtaining   any
  168.            permission from NJStar owner. But  we  prefer  you  write  to  us
  169.            first, so we can send the latest version to  you.  Other  Vendors
  170.            may distribute NJStar only  after  obtaining  written  permission
  171.            from the NJStar owner. Such permission is usually granted. Please
  172.            write for details (enclose your catalog). Vendors may charge  the
  173.            normal disk duplication and handling fee, which should not exceed
  174.            $5  per  disk.  Please  refer  to  file   VENDOR.DOC   for   more
  175.            information.
  176.  
  177. Section III.
  178.  
  179. This section is applicable to NJStar Registered Version.
  180.  
  181. 3.1 User's request for registration for NJStar  Registered  Version  is  the
  182.     implication of a user's acceptance of the terms and conditions listed in
  183.     this license. All required information should be submitted in  order  to
  184.     be qualified for registered user. Acceptance of the request is  made  at
  185.     NJStar owner's determination. User may  not  withdraw  the  registration
  186.     after acceptance, except at NJStar owner's determination.
  187.  
  188. 3.2 A single user license permits a user to use  NJStar  only  on  a  single
  189.     computer. Licensed user may use the program on different computers,  but
  190.     may not use the program on more than one  computer  at  the  same  time.
  191.     Multiple and Network user license require special permission.
  192.  
  193. 3.3 User's registration for NJStar Registered Version is a purchase for  the
  194.     right to use NJStar only under the term and conditions  listed  in  this
  195.     license. At no circumstance, licensed users are allowed to copy, rent or
  196.     resell their licenses or NJStar product to the third party.
  197.  
  198. 3.4 When upgrade to a newer  version  of  NJStar,  user's  license  for  the
  199.     previous  version  are  automatically  suspended.  At  no  circumstance,
  200.     licensed users are allowed to  transfer  or  resell  their  licenses  or
  201.     NJStar product for the previous version to the third party.
  202.  
  203. =============================================================================
  204.                             LIMITED WARRANTY
  205.  
  206.  
  207. This LIMITED WARRANTY contains two sections. Please read it carefully.  The
  208. term "NJStar Owner" refers to Hongbo Ni and Hongbo Data Systems only.
  209.  
  210. Section I.
  211.  
  212. This section is applicable for NJStar Registered Version only.
  213.  
  214. 1.1  The Author of NJStar warrants that all disks  provided  are  free from
  215.      defects in material and workmanship, assuming normal use, for a period
  216.      of 30 days from the date of purchase.
  217.  
  218. 1.2  The Author  of  NJStar  warrants  that  the  program  will  perform in
  219.      substantial compliance with the  documentation  supplied  within  this
  220.      document. If a  significant  defect  in  the  product  is  found,  the
  221.      Purchaser may return the product for a refund. In no event will such a
  222.      refund exceed the purchase price of the product.
  223.  
  224. Section II.
  225.  
  226. This section is applicable for both NJStar Shareware Version and Registered
  227. Version.
  228.  
  229. 2.1  Use of this product for any period of time constitutes your acceptance
  230.      of this agreement and subjects you to its contents.
  231.  
  232. 2.2  EXCEPT  AS  PROVIDED  ABOVE,  THE  AUTHOR  OF  NJSTAR  DISCLAIMS   ALL
  233.      WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT  LIMITED  TO
  234.      IMPLIED WARRANTIES OF MERCHANTABILITY AND  FITNESS  FOR  A  PARTICULAR
  235.      PURPOSE, WITH  RESPECT  TO  THE  PRODUCT.  SHOULD  THE  PROGRAM  PROVE
  236.      DEFECTIVE, THE PURCHASER ASSUMES THE RISK OF PAYING THE ENTIRE COST OF
  237.      ALL NECESSARY SERVICING, REPAIR, OR CORRECTION AND ANY  INCIDENTAL  OR
  238.      CONSEQUENTIAL DAMAGES. IN NO EVENT WILL THE AUTHOR OF NJSTAR BE LIABLE
  239.      FOR ANY DAMAGES WHATSOEVER (INCLUDING WITHOUT LIMITATION  DAMAGES  FOR
  240.      LOSS OF BUSINESS PROFITS,  BUSINESS  INTERRUPTION,  LOSS  OF  BUSINESS
  241.      INFORMATION AND THE LIKE) ARISING OUT OF THE USE OR THE  INABILITY  TO
  242.      USE  THIS  PRODUCT  EVEN  IF  THE  AUTHOR  HAS  BEEN  ADVISED  OF  THE
  243.      POSSIBILITY OF SUCH DAMAGES.
  244.  
  245. ============================================================================
  246.  
  247. 1. ABOUT THIS MANUAL
  248. ====================
  249.  
  250. This manual covers the complete information to run NJStar 3.0  in  both  the
  251. Shareware and Registered Versions. (Note: additional utility  programs  only
  252. provided for registered users are not  covered  in  this  manual.)  However,
  253. registered users will also get a copy of the NJSTAR Manual in Chinese, which
  254. has more details and  examples.  This  manual  is  written  for  experienced
  255. computer users only, while the Chinese manual is written for both  beginners
  256. and experienced users.
  257.  
  258. This manual contains the following sections:
  259.  
  260. (NJSTAR1.DOC)
  261.           1.  About This Manual
  262.           2.  NJStar Overview
  263.           3.  Program Usage
  264.           4.  Menu and Help
  265.           5.  File Management
  266.           6.  Cursor Movements
  267.           7.  File Editing
  268.           8.  Search and Replace
  269.           9.  Block Operations
  270. (NJSTAR2.DOC)           
  271.          10.  Inputting Chinese
  272.          11.  Tools
  273.          12.  Macros Commands
  274.          13.  Printing
  275. (NJSTAR3.DOC)              
  276.          14.  File Conversion
  277.          15.  System Configuration
  278.          16.  Font Utilities
  279.          Appendices
  280.           
  281.  
  282. Please note the following conventions used in this manual:
  283.  
  284. 1. This manual is organized in a similar way to NJStar's menu  tree,  unless
  285.    otherwise indicated. Functions are grouped as they are listed in the main
  286.    menu, but not necessarily in the same order. Functions that do not appear
  287.    in the main menu are grouped in related sections.
  288.  
  289. 2. Each function includes a brief explanation,  together  with  the  related
  290.    information. For instance, the Pinyin input method for Chinese characters
  291.    is described under the function of <PYInput>.
  292.  
  293. 3. Under each function, the function name is  given  within  <>  signs.  The
  294.    function names may be used for the NJStar key configuration file or macro
  295.    text files. NJStar's standard key  name  for  corresponding  function  is
  296.    presented with [] signs, followed by the menu item display in Chinese and
  297.    English, if any. If the function is not shown  in  the  menu,  a  Chinese
  298.    translation and English equivalence is given in () for reference.
  299.  
  300. 4. This manual is written in English, including a  few  Chinese  characters,
  301.    and is thus basically ASCII compatible. You may view or  print  it  under
  302.    NJStar. When viewing under other English editors or word processors,  all
  303.    English letters can  be  viewed  properly,  but  Chinese  characters  are
  304.    scrambled. If you want to produce a printed copy of this manual  with  an
  305.    English word processor, it is  advisable  to  remove  first  the  Chinese
  306.    characters.
  307.  
  308. 5. This manual  is  divided  into  three  files,  NJSTAR1.DOC  (this  file),
  309.    NJSTAR2.DOC, and NJSTAR3.DOC.
  310.  
  311. 6. For the NJStar development  history  and  other  background  information,
  312.    please read README.DOC. For utility programs not covered in the shareware
  313.    version, read  UTILITY.DOC.  For  Updates  made  after  this manual was
  314.    written, please read WHATSNEW.XXX.
  315.  
  316. =============================================================================
  317.  
  318. 2. NJSTAR OVERVIEW
  319. ==================
  320.  
  321. This section presents an overview of NJStar 3.0, as well  as  some  concepts
  322. that will be used in the following sections of this manual.
  323.  
  324. User may start NJStar from any DOS prompt, if the NJStar's sub-directory  is
  325. in the system path statement. NJStar also provides a full range  of  command
  326. line options for opening and editing files.
  327.  
  328. NJStar's interface includes both pull-down menus  and  a  quick-key  command
  329. system.  All  major  functions  are  re-configurable,  ie.,  capable  to  be
  330. reassigned into user selected keys. NJStar also provides a brief help screen
  331. as a reminder for reconfigured command keys. NJStar's screen colors  can  be
  332. reset by the user.
  333.  
  334. After entering NJStar, the top portion (18 lines for EGA, 24 lines for  VGA,
  335. or 29 lines for SuperVGA) is referred to as the "editing screen," where  you
  336. can display or edit a file. Under certain input modes however,  the  editing
  337. screen may also be used to enter the input codes  in  order  to  reduce  eye
  338. movement.
  339.  
  340. The "bottom line" is used mainly for the following purposes:
  341.  
  342.      A)   Display the current Chinese input mode;
  343.      B)   Display the status of LianXiang mode;
  344.      C)   Accept Chinese input codes;
  345.      D)   Display Chinese characters that can be used for input;
  346.      E)   Display the Status of macro operation mode; and
  347.      F)   Display the Status of Pure-Chinese mode.
  348.      G)   Display the Time Clock when Pure-Chinese mode is off.
  349.  
  350. The  bottom  line may  also  be  used for:
  351.  
  352.      A)   Report file or system status;
  353.      B)   Report operation results;
  354.      C)   Report error messages; and
  355.      D)   Accept input of the operational variables.
  356.  
  357. There are two different concepts of "line" in NJStar. One is called  "Screen
  358. Line," a line as shown on the screen. The other is  "Hard  Line,"  a  string
  359. ending with a [Return] character. Often, a hard line is called a  paragraph.
  360. We  will  specify  the  exact  meaning  of  "line"  in  the  context   where
  361. appropriate.
  362.  
  363. Under NJStar, the maximum size of a single  file  is  64K,  that  is,  65536
  364. bytes. However, users may open several files simultaneously.  When  multiple
  365. files are opened  for  editing,  a  "File  Ring"  is  established  for  file
  366. management. The file displayed on the screen is known as the "Current File".
  367. A file ring looks like the following  diagram,  with  files  arranged  in  a
  368. counterclockwise order:
  369.  
  370.                         FILENAME.1 <-----  Current File
  371.                         /       \
  372.                       /           \
  373.                     /               \
  374.               FILENAME.2 ---------> FILENAME.3
  375.  
  376. When a new file is opened, it will be added to the file ring,  next  to  the
  377. current file. The newly-opened file will become the current  file.  See  the
  378. following diagram,
  379.  
  380.  
  381.      Current File --->   FILENAME.4  <--------  FILENAME.1
  382.                             |                      ^
  383.                             |                      |
  384.                             v                      |
  385.                          FILENAME.2   ------->  FILENAME.3
  386.  
  387.  
  388. There is no limit to the number of files in the file ring, as  long  as  the
  389. computer can provide enough memory to manage it.  NJStar's  file  management
  390. functions make it very easy to control a single file or a bunch of files. In
  391. addition to these functions invoked by the user,  NJStar  can  automatically
  392. save the current file to prevent any  unexpected  interruption,  such  as  a
  393. power failure. NJStar also keeps a .BAK file for the user when saving a file
  394. which has been modified.
  395.  
  396. Many operations also refer to "current  screen",  "current  line",  "current
  397. string", or, "current character". By the same token, that means the  screen,
  398. line, string or character the cursor is pointed at.  However,  the  "current
  399. block" means the block that is set in the current file, no matter  where  it
  400. is located.
  401.  
  402. When inputting Chinese characters, NJStar uses PinYin as the  primary  input
  403. method. When the user enters an input code, NJStar will  display  one  or  a
  404. list of matched characters at the bottom  line.  The  user  can  select  the
  405. desired character in  order  to  paste  it  into  the  editing  screen.  The
  406. traditional characters  can  be  entered  in  the  same  way  as  simplified
  407. characters.
  408.  
  409. Many useful features have been  incorporated  to  enhance  the  strength  of
  410. PinYin input. LianXiang, one of NJStar's most  outstanding  features,  works
  411. together with PinYin, making PinYin  input  more  effective  and  efficient.
  412. "LianXiang" stands for ┴¬╧δ, meaning that when you input one character,  the
  413. system will automatically associate those other characters, if any, that are
  414. most likely to combine with the current one to make up a meaningful word  or
  415. phrase. Users can easily modify the LianXiang vocabulary.
  416.  
  417. In addition to PinYin, NJStar also supports more than 20 other popular input
  418. methods, such as GuoBiao, QuWeiMa, ASCII, WuBiZiXing and  CangJi.  LianXiang
  419. works with other Chinese input methods as well.  Users  may  choose  to  use
  420. other input methods as a primary one.
  421.  
  422. NJStar's editing functions, including cursor locating, text copying, moving,
  423. deleting, as well as undeleting commands, make  it  possible  to  manipulate
  424. text in the way preferred by the user. Complete block functions  make  those
  425. editing tasks even easier, especially for exchanging data  between  multiple
  426. files. NJStar's macros also add the feasibility to create shortcuts for many
  427. tasks.
  428.  
  429. When printing, you do not have to leave NJStar. A file can be printed  to  9
  430. pin, 24 pin dot matrix printers, laser printers, as well as  other  printers
  431. from the NJStar editor. NJStar's  print  format  commands  enable  users  to
  432. customize the page layout whenever necessary. User may specify the range  of
  433. page numbers to print and the output devices for printing.  A  file  may  be
  434. printed in either simplified or traditional characters  or  both  at  user's
  435. choice, no matter how the file was created. NJStar also provides  many  file
  436. conversion capabilities to enhance information exchange in Chinese.
  437.  
  438. For a more  detailed  description  of  NJStar's  functions  and  operational
  439. procedures, please read the following text.
  440.  
  441. =============================================================================
  442.  
  443. 3. PROGRAM USAGE
  444. ================
  445.  
  446. This section describes NJStar's usage, and its command line options.
  447.  
  448. To invoke NJSTAR from the DOS  prompt,  make  sure  that  the  NJSTAR  files
  449. (NJSTAR.EXE and other auxiliary files) are in the current  sub-directory  or
  450. accessible through the system path  statement.  The  following  is  a  brief
  451. presentation about NJSTAR usage and command line options:
  452.  
  453. PROGRAM   NJSTAR.EXE
  454.  
  455.      [USAGE]
  456.           NJSTAR [options] [filename, filename, ... filenames] [+linenum]
  457.  
  458.      [OPTIONS]
  459.           -?/h    - Help information
  460.           -e      - Use EGA 19 line display for VGA monitor
  461.           -m      - Use MonoEGA, MonoVGA/MCGA (640x480x2)
  462.           -s      - Use predefined Super VGA monitor
  463.           -r      - Open files as Read Only, so can not save
  464.           -v      - Don't LianXiang (for RAM less than 450K)
  465.           -d      - Automatically display a file until [Ctrl+C] pressed
  466.           -b      - Open Big5 file, decode it after read
  467.           -zW     - Open zW encoded file, decode it after read
  468.           -Hz     - Open Hz encoded file, decode it after read
  469.           -lmacro - Load Macro from file "macro.NJM" into macro buffer
  470.           -xmacro - Load  Macro from file  "macro.NJM" into macro
  471.                      buffer and then execute the macro once
  472.  
  473.      Filename: For any file(s) to be edited. More than one file name can  be
  474.                entered at a command line. DOS wildcards, * or ?, can be used
  475.                as part of file name. The drive name and the full path can be
  476.                added to the file if necessary. If the  file  name  does  not
  477.                exist on the disk, a new file will be opened under this name.
  478.                NJSTAR adds the ".gb" file extension if none is specified. If
  479.                no file name is entered, NJStar will open an unnamed area for
  480.                editing.
  481.  
  482.      +linenum: [linenum] points to the line where the cursor will be located
  483.                after the file is opened. The line is  understood  as  string
  484.                ending with a [Return] character, not a screen line.  If  the
  485.                line number is greater  than  the  last  line's  number,  the
  486.                cursor will be located at the end of the  file.  The  special
  487.                line number, "+$" will position the cursor at the end of  the
  488.                file. If no line number is entered, the cursor will be at the
  489.                beginning of the file.
  490.  
  491.      [EXAMPLES]
  492.  
  493.           C:\NJSTAR30> NJSTAR njstar.man +200 njstar +$
  494.  
  495.           C:\NJSTAR30> NJSTAR *.doc *.txt
  496.  
  497.           C:\NJSTAR30> NJSTAR -e njstar.doc
  498.  
  499.           C:\NJSTAR30> NJSTAR -v *.tx?
  500.  
  501.           C:\NJSTAR30> NJSTAR -b -lmymac hxwz.b5
  502.  
  503. Please note that for NJStar's auxiliary  files,  only  font  (cclib*.*)  and
  504. dictionary (*.dic) files can be located on a directory other  than  NJStar's
  505. home directory. If this is the case, you must use DOS environment variables,
  506. NJZK and NJDIC, to identify the location of font and dictionary  files.  For
  507. example, if the font files are located in  C:\NJSTAR30\FONT  and  dictionary
  508. files in C:\NJSTAR30\DIC, add the following lines to your AUTOEXEC.BAT file:
  509.  
  510.           SET NJZK=C:\NJSTAR30\FONT
  511.           SET NJDIC=C:\NJSTAR30\DIC
  512.  
  513. Alternatively, those two variables can also  be  defined  in  NJSTAR.INI  by
  514. adding these two lines:
  515.  
  516.           NJZK=C:\NJSTAR30\FONT
  517.           NJDIC=C:\NJSTAR30\DIC
  518.  
  519. The SET commands in AUTOEXEC.BAT override definitions in NJSTAR.INI.
  520.  
  521. By defining NJZK and NJDIC in NJSTAR.INI or as  environment  variables,  you
  522. can avoid the need for multiple copies of fonts  and  dictionaries  on  hard
  523. disk when multiple versions of NJSTAR are installed. Those two variables are
  524. also used by all programs based on the NJSDK  Chinese  software  development
  525. kits.
  526.  
  527. =============================================================================
  528.  
  529. 4. MENU AND HELP
  530. ================
  531.  
  532. This section describes NJStar's Menu system and online Help functions. These
  533. functions are located under "Help" (░∩╓·)  in  the  main  menu,  except  the
  534. <Menu> function.
  535.  
  536. FUNCTION   <Menu>   [ESC]        (╓≈╣ª─▄▒φ   Main menu)
  537.  
  538. This function will call up NJStar's pull-down menu.
  539.  
  540. The following is the Menu Tree in English. Due to limited space, some  items
  541. are abbreviated arbitrarily.
  542.  
  543. FILE     EDIT       BLOCK     SEARCH      INPUT     TOOLS     OUTPUT   HELP
  544. ======== ========== ========= =========== ========= ========= ======== ========
  545. LoadFile Undelete   MarkBlock Search      PinYin    Diction'y Print Fl Help
  546. OpenFile DelLine    MarkLine  SearchForwd OnlinePY  Glossary  SavePCX  Chin/Eng
  547. ClosFile DelToEndLn MarkWord  SearchBckwd Zhuyin    HZ Info   OutCode  Copyrit
  548. SaveFile DelToBegLn CopyBlock SearchReplc ASCInput  Add Word  zWSaveFl Register
  549. SaveAsGB DupLine    MoveBlock AutoReplace GB/QWM    Del Word  zWDecode
  550. Ren File ---------- Del Block ----------- Radicals  --------- HzEditFl
  551. SaveBlck FileStatus UnDelBlk  BegLine     Ex Input  NJCONFIG  HzSaveFl
  552. FileList Time&Date  UnMarkBlk EndLine     PY to HZ  --------- HzDecode
  553. NextFile FileName   GotoBlock PageUp      PY back   SaveMacro SaveBig5
  554. PrevFile List Dir   Copy      PageDown    Options   ReadMacro ReadBig5
  555. Save All WordCount  Paste     BegFile     Symbols   Macro Exc
  556. DOS Cmmd ToggleEOL            EndFile     LianXiang Macro Rec
  557. DosShell                      GotoLine    Fan/JianTi
  558. Exit All                                  PureChinese
  559.  
  560. In ASCII mode, or in any Chinese input  mode  without  a  Chinese  character
  561. selected in the bottom line, press [ESC] to call up the menu.
  562.  
  563. Mouse users can position the mouse cursor at the top line of the screen  and
  564. click the mouse's left button once to call up the menu.
  565.  
  566. When the main menu displays, the cursor keys or the mouse cursor will select
  567. a main menu item. Press [Return], or click the left mouse  button  once,  to
  568. activate a pull-down submenu under the main menu  item.  If  the  system  is
  569. currently in English, enter the first letter of the  desired  menu  item  to
  570. call up the submenu.
  571.  
  572. Submenu item selection operates in the same way as the main menu  items.  In
  573. addition, if the system is currently in Chinese, you can enter the letter of
  574. the menu item. If the system is currently in English, enter the first  upper
  575. case letter in the menu item to start the menu item command.
  576.  
  577. To turn off the main menu, press the [ESC] key,  or  click  the  left  mouse
  578. button once while the mouse cursor is pointing to any location  outside  the
  579. current menu area.
  580.  
  581. FUNCTION   <EnglishMenu>  [Ctrl+M]   ╓╨╬─▓╦╡Ñ            ENGLISH
  582.  
  583. Toggles between Chinese and English menu system. Please note  the  different
  584. meaning for the menu item. That is, it  offers  "English  Menu"  when  under
  585. Chinese mode, and vice versa. Once switched, it also resets the language for
  586. the help screen and the system messages and prompts.
  587.  
  588. FUNCTION   <QuickHelp>   [F1]       ╣ª─▄╠ß╩╛           Quick Help
  589.  
  590. Displays NJStar's Quick Help screen. The content of the default help  screen
  591. may be found in NJCONFIG.HLP (in Chinese) and ENGLISH.HLP (in English).
  592.  
  593. There are 24 lines in the help screen, with up  to  80  characters  in  each
  594. line. Only 18 Lines can be displayed on EGA screens at  one  time,  but  the
  595. rest 6 lines will be displayed after the first screen. If you have  modified
  596. NJCONFIG.HLP/ENGLISH.HLP, or you want to  use  your  own  help  screen,  run
  597. NJCONFIG.EXE in order to write a new Help screen  into  NJSTAR.NJC.  A  help
  598. screen file can have 80 characters per line and up to 24  line  maximum.  It
  599. must be in ASCII format or GB format. Pressing the mouse  middle  button  at
  600. the bottom line also invokes the help function.
  601.  
  602. After viewing the help screen, you can press any  key  to  go  back  to  the
  603. current editing screen.
  604.  
  605. =============================================================================
  606.  
  607. 5. FILE MANAGEMENT
  608. ==================
  609.  
  610. This section describes NJStar's file  management  functions.  All  functions
  611. listed here can be found under "File" (╬─╝■╣▄└φ) in the top menu.
  612.  
  613. FUNCTION   <EditFile>      [F8]             ▒α╝¡╬─╝■       Load File
  614.  
  615. Opens a user specified file on disk, and place it into the File  Ring  after
  616. the current file. NJStar will then switch  to  the  newly  opened  file  and
  617. display it as the new current file. The file from  which  the  function  was
  618. initiated remains in the File Ring as the previous file.
  619.  
  620. When executing this function, NJStar will prompt for a file  name.  You  may
  621. enter a file name at the prompt, DOS wild cards (*,?) can be used, including
  622. the drive name and full path if necessary. Alternatively, you can press [F1]
  623. to list all files in the current sub-directory in a pop-up window.
  624.  
  625. From the pop-up file list window, you can select a file with the cursor keys
  626. or the mouse. Sub-directory items are listed before  the  file  name.  "\.."
  627. indicates a parent directory  for  the  current  sub-directory.  "(NewFile)"
  628. opens an "untitled" file. Other drive letters, if any, would be given at the
  629. end of the list, such as [A:], [B:]. The [DEL] key will delete a highlighted
  630. file, (not a sub-directory), from the disk after confirmation.
  631.  
  632. When the list extends beyond the window, you can use the down arrow  key  or
  633. [PgDn] to scroll through the list. With a mouse, click  the  left  or  right
  634. button and drag the mouse to scroll the list.
  635.  
  636. Before switching to the newly-opened file,  NJStar  checks  to  see  if  the
  637. current file has been modified. You have to confirm whether or not to save a
  638. modified file. If you answer [N]o, the modifications  in  the  current  file
  639. will be abandoned. At any point, press [ESC] to cancel the request.
  640.  
  641. If the current file is an "untitled" file, the system will not ask  for  the
  642. file name until you are ready to save the file.
  643.  
  644. FUNCTION   <OpenFile>     [Ctrl+O]      ┤≥┐¬╬─╝■      Open File
  645.  
  646. Invokes the <EditFile>+[F1] key function. No file name is asked.  To  invoke
  647. this function with the mouse, press the right button on any portion  of  the
  648. bottom line. See description under  Function  <EditFile>  for  more  details
  649. about operations in the pop-up file list window.
  650.  
  651. FUNCTION   InsertFile   [Ctrl+I]       ▓σ╚δ╬─╝■
  652.  
  653. This function is implemented as a macro in NJCONFIG.KEY.
  654.  
  655. This function will insert a second file to the location where the cursor  is
  656. pointed to. When you start this function, it will bring up a  file  list  as
  657. described in <EditFile>. User may select a file to be opened, or press [ESC]
  658. to cancel the operation. The content of the inserted file will be marked  in
  659. reverse video.
  660.  
  661. Since NJStar limits the file size to 64K, it is advisable not  to  insert  a
  662. file that won't fit into the current file. To be safe, you should  save  the
  663. current file before you insert another file of unknown length.
  664.  
  665. FUNCTION   <NextFile>     [F10]      ╧┬╥╗╬─╝■            Next File
  666.  
  667. When editing multiple files, this function will move to the next file in the
  668. File Ring and then present that file as the  current  file.  The  file  from
  669. which the function was initiated remains in the File Ring  as  the  previous
  670. file.
  671.  
  672. Before leaving the current file, NJStar may check to see if the current file
  673. is modified. You must confirm whether to save the modified file or  not.  If
  674. you answer [N]o, modifications will be abandoned. Press [ESC] to cancel  the
  675. request.
  676.  
  677. FUNCTION   <PrevFile>      [Alt+F10]    ╔╧╥╗╬─╝■          Prev File
  678.  
  679. When editing multiple files, this function will move to the previous file in
  680. the File Ring and then present that file as the current file. The file  from
  681. which the function was initiated remains in the File Ring as the next  file.
  682. (Please see <NextFile>.)
  683.  
  684. FUNCTION   <FileList>      [Shift+F10]   ╤í╘±╬─╝■          File List
  685.  
  686. When editing multiple files, this function will display a pop-up window with
  687. all file names in the current File Ring.  The  current  file  name  will  be
  688. listed as the first item and the others listed in  the  order  of  the  File
  689. Ring. A file can be picked up from this list without changing the  order  of
  690. the File Ring.
  691.  
  692. When the list displays, use the cursor key to select an file name, and  then
  693. press [Return] to open that file. Or, you can use the mouse cursor to  point
  694. to the file name and then click the left button once  to  select  the  file.
  695. Press [ESC] to select no file and go back to the  current  file.  Otherwise,
  696. when a file is selected, NJStar will check the modification in  the  current
  697. file. If there are any unsaved modifications, the system  will  ask  you  to
  698. save the file if necessary. (Please see <EditFile>.)
  699.  
  700. If there is no Chinese character at the bottom line waiting to be  selected,
  701. point the mouse cursor at the middle section of the  bottom  line  and  then
  702. click the left button once to invoke this function.
  703.  
  704. FUNCTION   <RenameFile>      [F7]       ╬─╝■╕─├√          Rename File
  705.  
  706. Renames the current file  to  a  user  specified  name,  without  saving  it
  707. immediately.
  708.  
  709. The program will prompt you to enter the new file name, with drive name  and
  710. full path if necessary. NJStar prompts to confirm the name if the file  name
  711. exists already. The request can be cancelled by pressing [ESC].
  712.  
  713. FUNCTION   <SaveFile>        [F2]       ╬─╝■┤µ┼╠          Save File
  714.  
  715. Saves the current file to disk under its current file  name.  If  NJStar  is
  716. configured to produce a '.BAK' file on saving, it will produce a backup file
  717. with a .BAK extension name. ie. the disk file with  the  same  name  as  the
  718. current file is renamed to *.BAK.
  719.  
  720. If disk is full or the file is read only, an error message will be displayed
  721. on the bottom line.
  722.  
  723. FUNCTION   <SaveAs>       [Ctrl+F3]      ╗╗├√┤µ┼╠         Save As GB
  724.  
  725. Saves the current file with a  user  specified  file  name  to  disk.  After
  726. operation, the file name will be changed to the new name.
  727.  
  728. The system will prompt user to enter a file name, with the current file name
  729. as default. You can accept the default name, give another  name,  or  cancel
  730. the request by pressing [ESC]. If  the  file  name  is  a  duplicate  of  an
  731. existing file, the system will ask to confirm the file  name  provided,  and
  732. produce a .BAK file if the file name is confirmed. If  disk  is  full  or  a
  733. writing error occurred, an error message will be displayed.
  734.  
  735. FUNCTION   <File>    [F4]              (┤µ┼╠═╦│÷           File)
  736.  
  737. Closes the current file and withdraw it from the File Ring.  When  quitting,
  738. it saves the current file to disk. If there was only one file  open,  NJSTAR
  739. exits to DOS. Otherwise, it goes to the next file in the File Ring.
  740.  
  741. If the disk is full or the file is read  only,  an  error  message  will  be
  742. displayed on the bottom line and NJStar will prompt to quit.If the  disk  is
  743. full, you can change to another disk. If the current file is read only,  the
  744. message "This file is Read Only, can't save!" is displayed. You have to  use
  745. <RenameFile> to rename current file to another file name, then use <File> or
  746. <SaveFile> again, or use <SaveAs> function to save to another file.
  747.  
  748. FUNCTION   <SaveAll>     [Ctrl+F4]       ╚½▓┐┤µ┼╠          Save All
  749.  
  750. When editing multiple files, this function will save  the  current  file  to
  751. disk. All files are released from the File Ring and you can exit to DOS.  If
  752. it fails to save files, it stops to quit. (Please see <File>.)
  753.  
  754. FUNCTION   <QuitFile>     [F3]           ╣╪▒╒╬─╝■         Close File
  755.  
  756. Exits from the current file without the option to save current  file  it  to
  757. disk. However, if the current file has been modified, you will  be  prompted
  758. for Save File. Press [Y] to keep modifications, or [N] to quit. If there  is
  759. only one file open, NJStar quits to DOS; otherwise, it goes to the next file
  760. in the File Ring.
  761.  
  762. FUNCTION   <QuitAll>      [Ctrl+F3]      ╚½▓┐═╦│÷        Exit All
  763.  
  764. When editing multiple files, this  function  exits  from  the  current  file
  765. without a Save option. However, if the current file has  been  modified,  it
  766. will prompt for the optional Save. (Please see <QuitFile>.)
  767.  
  768. FUNCTION   <DOS>          [Ctrl+D]       DOS ├ⁿ┴ε        DOS Command
  769.  
  770. Executes a user specified DOS command. When finished, it will switch back to
  771. NJStar. This command is very useful in macro commands. Users can access  any
  772. external program to perform some tasks (such as spelling checking) which are
  773. not available in NJSTAR.
  774.  
  775. FUNCTION   <Shell>        [Ctrl+S]       ▓┘╫≈╧╡═│        DOS Shell
  776.  
  777. Shells out to DOS. NJSTAR's DOS shell occupies very little  RAM  and  leaves
  778. enough memory for most DOS operations. In NJSTAR's shell, the  DOS's  prompt
  779. shows <NJ>, for example:
  780.  
  781. C:\NJSTAR30\><NJ> _
  782.  
  783. Remember to type "EXIT" to return to NJStar once you have finished with DOS.
  784.  
  785. =============================================================================
  786.  
  787. 6. CURSOR MOVEMENTS
  788. ===================
  789.  
  790. This section describes NJStar's cursor movements. Some of them  are  located
  791. under "Search" (▓Θ╒╥╥╞╢») in the main menu.
  792.  
  793. Mouse: point the mouse cursor to any position in the screen, except the  top
  794. line, and then click the left button once to  relocate  the  cursor  on  the
  795. current screen.
  796.  
  797. FUNCTION   <CursorLeft>    [LEFT]        (╣Γ▒Ω╧≥╫≤         Left)
  798.  
  799. Moves the cursor to  the  previous  character.  If  the  cursor  is  on  the
  800. beginning of the current line, the cursor  will  move  to  the  end  of  the
  801. previous line. If the cursor is on the top left of the  screen,  the  screen
  802. display will scroll up one line.
  803.  
  804. FUNCTION   <CursorRight>   [RIGHT]       (╣Γ▒Ω╧≥╙╥         Right)
  805.  
  806. Moves the cursor to the next character. If the cursor is on the end  of  the
  807. current line, the cursor will move to the beginning of the next line. If the
  808. cursor is on the bottom right of the screen, the screen display will  scroll
  809. down one line.
  810.  
  811. FUNCTION   <CursorUp>      [UP]          (╣Γ▒Ω╧≥╔╧         Up)
  812.  
  813. Moves the cursor one line up. A line here is a line shown on the screen, not
  814. a hard line. If the cursor is on the top line of  the  current  screen,  the
  815. screen display will scroll up one line.
  816.  
  817. FUNCTION   <CursorDown>    [DOWN]        (╣Γ▒Ω╧≥╧┬         Down)
  818.  
  819. Moves the cursor one line down. If the cursor is on the bottom line  of  the
  820. current screen, the screen display will scroll down one line.
  821.  
  822. FUNCTION   <BegLine>       [HOME]        ╥╞╓┴╨╨╩╫          Beg Line
  823.  
  824. Moves the cursor to the beginning of the current screen line. If the  cursor
  825. is already in the beginning of the line, the cursor  will  be  relocated  to
  826. first non-blank character in the current line.
  827.  
  828. FUNCTION   <EndLine>       [END]         ╥╞╓┴╨╨─⌐          End Line
  829.  
  830. Moves the cursor to the end of the current screen line.
  831.  
  832. FUNCTION   <WordLeft>      [Ctrl+LEFT]   (▒╛╛Σ╩╫           Word Left)
  833.  
  834. Moves the cursor to the beginning  of  the  current  word.  In  NJStar,  all
  835. Chinese Characters, ASCII letters (a-z, A-Z), numbers (0-9), and  underscore
  836. (_) are handled as elements of a word. Other characters,  including  Chinese
  837. punctuation, are considered as word separators.
  838.  
  839. FUNCTION   <WordRight>     [Ctrl+RIGHT]  (╧┬╛Σ╩╫           Word Right)
  840.  
  841. Moves the cursor to the beginning of the next word. (See <WordLeft>)
  842.  
  843. FUNCTION   <BegScreen>     [Ctrl+UP]   (╥╞╓┴╞┴╩╫   Begin Screen)
  844.  
  845. Moves the cursor to the top left of the current screen.  If  the  cursor  is
  846. already at that position, it will do nothing.
  847.  
  848. FUNCTION   <EndScreen>     [Ctrl+DOWN]  (╥╞╓┴╞┴─⌐   End Screen)
  849.  
  850. Moves the cursor to the bottom left of the current screen. If the cursor  is
  851. already at that position, it will do nothing.
  852.  
  853. FUNCTION   <PageUp>        [PGUP]        (╥╞╓┴╔╧╞┴         Page Up)
  854.  
  855. Moves the cursor to the bottom line of the previous screen, then  display  a
  856. new screen. If the current screen is the top screen, it will do nothing.
  857.  
  858. FUNCTION   <PageDown>      [PGDN]        (╥╞╓┴╧┬╞┴         Page Down)
  859.  
  860. Moves the cursor to the top line of the next  screen,  then  display  a  new
  861. screen. If the current screen is the last screen, it will do nothing.
  862.  
  863. FUNCTION   <BegFile>       [Ctrl+HOME]      ╬─╝■╩╫         Beg.File
  864.  
  865. Moves the cursor to the beginning of the file, and redisplay the  screen  if
  866. necessary. If the cursor is at  the  beginning  of  the  file,  it  will  do
  867. nothing.
  868.  
  869. FUNCTION   <EndFile>       [Ctrl+END]       ╬─╝■─⌐         End File
  870.  
  871. Moves the cursor to the end  of  the  file,  and  redisplay  the  screen  if
  872. necessary. If the cursor is at the end of the file, it will do nothing.
  873.  
  874. FUNCTION   <ScrollUp>    [Alt+UP]         (╔╧╣÷╥╗╨╨     Scroll Up)
  875.  
  876. Scrolls the screen display up line by line  towards  the  beginning  of  the
  877. file. Please notice that the  cursor's  relative  position  on  the  current
  878. screen will not be changed.
  879.  
  880. Mouse: point the mouse cursor at any position of the current screen,  except
  881. the top line, and then drag the mouse up to scroll the screen up.
  882.  
  883. FUNCTION   <ScrollDown>   [Alt+DOWN]       (╧┬╣÷╥╗╨╨  Scroll Down)
  884.  
  885. Scrolls the screen display down line by line, to the end of  the  file.  The
  886. cursor's relative position at the current screen will not be changed.
  887.  
  888. Mouse: point the mouse cursor at any position of the current screen,  except
  889. the top line, and then drag the mouse down to scroll the screen down.
  890.  
  891. FUNCTION   <GotoLine>      [Ctrl+F6]        ╤░╒╥╨╨║┼       Goto Line
  892.  
  893. Moves the cursor to a user specified line and then redisplay the  screen  if
  894. necessary. A line here is a hard line.
  895.  
  896. When NJStar asks for a line number, you can enter one of the following:
  897.  
  898.         Line #    Results
  899.         ======    ====================================================
  900.         100       Go to the 100th line
  901.         +50       Forward 50 lines from the current line
  902.         -20       Back up 20 lines from the current line
  903.          $        Go to the end of the file
  904.         9999      When line number exceeded, go to end-of-file
  905.  
  906. =============================================================================
  907.  
  908. 7. FILE EDITING
  909. ===============
  910.  
  911. This section describes NJStar's basic editing commands. Please read the next
  912. two sections for Search/Replace and Block Operations. Some functions  listed
  913. below can be found under "Editing Function" (▒α╝¡╣ª─▄) in the main menu.
  914.  
  915. FUNCTION   <Enter>         [ENTER]          (╗╪│╡╝ⁿ       Return)
  916.  
  917. Inserts a [Return] character at the end of the current line  and  then  move
  918. the cursor to the beginning of the next new line.
  919.  
  920. This function is also used to end user input in many other  cases,  such  as
  921. search strings, file names, printing variables, etc.
  922.  
  923. FUNCTION <HardReturn>  [GREYENTER] or [Shift+ENTER] (╠µ┤·╗╪│╡╝ⁿ HardReturn)
  924.  
  925. Inserts a [Return] character into the search  string.  The  display  of  the
  926. [Return] character depends on user's setting for End  of  Line  symbol.  The
  927. default is ASCII character 20.
  928.  
  929. In some Chinese input modes which require only  numerical  keys  on  keypad,
  930. such as "DianBao", this  function  may  be  used  for  selecting  the  first
  931. character in the bottom line.
  932.  
  933. For other situations, this function is the same as <Enter>.
  934.  
  935. FUNCTION   <Space>        [SpaceBar]        (┐╒╕±╝ⁿ        Space)
  936.  
  937. Enters a space character  into  the  current  file.  If  the  system  is  in
  938. non-Pure-Chinese mode, it enters an ASCII  space  character.  Otherwise,  it
  939. enters two ASCII space characters.
  940.  
  941. When the bottom line has Chinese characters waiting  to  be  selected,  this
  942. function selects the first character. To input a space in  this  case,  user
  943. should use ALT+Space or CTRL+Space.
  944.  
  945. NOTE: <Space> is not a configurable function.
  946.  
  947. FUNCTION   <DelChar>       [DEL]            (╔╛│²║≤╫╓    Del Char)
  948.  
  949. Deletes the character at the current cursor position. If the current  cursor
  950. is at the end of a line, the End of Line character, ie., [Return] character,
  951. will be deleted so the next line will be joined to the current line.
  952.  
  953. FUNCTION   <BackSpace>     [BS]             (╔╛│²╟░╫╓     BackSpace)
  954.  
  955. Deletes the character before the current cursor  position.  If  the  current
  956. cursor is at the beginning of a  line,  the  previous  line's  End  of  Line
  957. character will be deleted so the current line will be joined to the previous
  958. line.
  959.  
  960. FUNCTION   <DelLine>     [Ctrl+BackSpace]    ╔╛│²▒╛╨╨       Del Line
  961.  
  962. Deletes the current screen line, including the End of Line character.
  963.  
  964. FUNCTION   <DelToBegLine>  [Ctrl+J]         ╔╛╓┴╨╨╩╫       Del to Beg Line
  965.  
  966. Deletes all characters up to the beginning of the current screen  line,  not
  967. including the character at the current cursor position. If the cursor is  at
  968. the beginning of a line, it will do nothing.
  969.  
  970. FUNCTION   <DelToEndLine>  [Ctrl+K] or [Ctrl+E]  ╔╛╓┴╨╨─⌐  Del to End Line
  971.  
  972. Deletes all characters from the current cursor position to the  end  of  the
  973. current screen line, not including the End of Line  character.  However,  if
  974. the current line is a blank line, or the cursor is at the end of a line, the
  975. End of Line character will be deleted.
  976.  
  977. FUNCTION   <UnDelLine>     [F9]             ╗╓╕┤╔╛│²      UnDelete
  978.  
  979. Recovers the most recently deleted text by any  of  the  deleting  functions
  980. listed above,  and  insert  the  recovered  text  into  the  current  cursor
  981. position.
  982.  
  983. If one or more  deleting  functions  are  used  without  interruptions,  all
  984. deleted text  could  be  recovered  by  this  function.  However,  if  other
  985. non-deleting functions are invoked in between deleting, such as  moving  the
  986. cursor, only the latest deleted text could be recovered.
  987.  
  988. FUNCTION   <DupLine>       [Ctrl+L]         ╕┤╓╞▒╛╨╨       Dup Line
  989.  
  990. Duplicates the current screen line to the  next  line,  and  then  move  the
  991. cursor down to the next line.
  992.  
  993. FUNCTION   <TimeDate>      [Ctrl+T]         ╡▒╟░╩▒╝Σ       Time & Date
  994.  
  995. Inserts the current system date and time into the editing screen in  Chinese
  996. format. Time/Date will appear  as  Year,  Month,  Day,  Hours,  Minutes  and
  997. Seconds.
  998.  
  999. The system clock has to be set for  this  function  to  return  the  correct
  1000. Time/Date.
  1001.  
  1002. FUNCTION  <FileName>       [Ctrl+X+N]       ╡▒╟░╬─╝■       File Name
  1003.  
  1004. Inserts the current file name, together with the full path, into the editing
  1005. screen, or into the prompt string on the bottom line when used in a macro.
  1006.  
  1007. FUNCTION  <ToggleEOL>      [Ctrl+F9]        ╧╘╩╛╨╨─⌐       Toggle EOL
  1008.  
  1009. Toggles the display of End of Line symbols at the editing screen. The symbol
  1010. character and the initial display status can be defined  with  NJCONFIG.EXE.
  1011. The default symbol is ASCII character 20, and the default display status  is
  1012. off.
  1013.  
  1014. FUNCTION  <FileStatus>     [Ctrl+F1]        ╡▒╟░╟Θ┐÷       File Status
  1015.  
  1016. Displays the status of the current file, such  as  file  type,  name,  size,
  1017. number of Chinese characters, and number of hard lines, at the bottom  line.
  1018. The current cursor position, in terms of line and column, is also displayed.
  1019.  
  1020. FUNCTION  <WordCount>      [Ctrl+F5]        ═│╝╞╫╓╖√       Word Count
  1021.  
  1022. Counts the frequency of a user specified string, within the block  from  the
  1023. current cursor position to the end of the file. The result will be displayed
  1024. at the bottom line. This function can also be used within a marked block.
  1025.  
  1026. When this function is invoked, it will prompt for a string  to  be  counted.
  1027. The string may be any type of text in the file and any relevant input method
  1028. can be used to input Chinese or other characters. If this function,  or  any
  1029. one of searching functions, was called earlier, the system will prompt  with
  1030. the previously entered string. In this case, press [Ctrl+BackSpace] to clear
  1031. the existing string, or use other keys to edit the string. When ready, press
  1032. the [Return] key to accept the string. (The  <HardReturn>  key  is  used  to
  1033. enter the End of Line symbol in the string.) Press the [ESC] key at any time
  1034. to cancel the counting request.
  1035.  
  1036. FUNCTION   <ListDir>       [Shift+F9]         ╧╘╩╛─┐┬╝       List Dir
  1037.  
  1038. Lists files in a sub-directory, as well as the total file  number  and  free
  1039. disk space. You can specify the drive, path, or  file  name,  if  necessary.
  1040. After viewing the directory, press any key to go back to the editing screen.
  1041.  
  1042. FUNCTION   <Keyboard>      (not assigned by default)
  1043.  
  1044. This function enables you to select  a  different  keyboard,  e.g.  English,
  1045. French, German and Swedish-Danish-Norwegian. The default  keyboard  is  also
  1046. configurable through NJCONFIG's General option. This command is only  useful
  1047. when no other keyboard driver is installed.
  1048.  
  1049. International keyboard support (any countries supported by DOS) is available
  1050. through the MS-DOS keyboard driver. The Keyboard driver should be  installed
  1051. before starting NJSTAR. However,  since  ASCII  161-254  are  used  to  code
  1052. Chinese characters, the special characters in this range will be ignored.
  1053.  
  1054. With the International keyboard support, the <keyboard> command is no longer
  1055. necessary. This command is provided for compatibility with V2.1, and may  be
  1056. removed in future version.
  1057.  
  1058. =============================================================================
  1059.  
  1060. 8. SEARCH AND REPLACE
  1061. =====================
  1062.  
  1063. This section describes NJStar's Search and Replace functions.  All  of  them
  1064. are located under "Search" (▓Θ╒╥╥╞╢») in the main menu.
  1065.  
  1066. FUNCTION   <Search>        [F5]             ▓Θ╒╥╫╓╖√       Search
  1067.  
  1068. Searchs a user specified string, beginning at the  current  cursor  position
  1069. and to the end-of-file. When the first match is found, the  cursor  will  be
  1070. relocated to the beginning of the string and the screen may  be  redisplayed
  1071. if necessary. If no match is found, a  message  will  be  displayed  at  the
  1072. bottom line.
  1073.  
  1074. The string to be searched may be any type of text.  Please  see  <WordCount>
  1075. for entering the search string.
  1076.  
  1077. FUNCTION   <SearchForward> [Ctrl+F]         ╧≥╟░▓Θ╒╥       Search Forward
  1078.  
  1079. Searchs for a string, from the current cursor position to  the  end  of  the
  1080. file. When the first match is found, the cursor will  be  relocated  to  the
  1081. beginning of the string and the screen may be redisplayed and  centered.  If
  1082. no match is found, a message will be displayed on the bottom line.
  1083.  
  1084. Unlike the <Search> function, this function will not  prompt  for  a  search
  1085. string if a previous search string exists in the buffer.
  1086.  
  1087. FUNCTION   <SearchBackward>  [Ctrl+B]       ╧≥║≤▓Θ╒╥       Search Backward
  1088.  
  1089. Searchs for a string,  from  the  character  prior  to  the  current  cursor
  1090. position, to the beginning of the file. If a match is found, the cursor will
  1091. be relocated  to  the  beginning  of  the  string  and  the  screen  may  be
  1092. redisplayed and centered. If no match is found, a message will be  displayed
  1093. on the bottom line.
  1094.  
  1095. With NJCONFIG.EXE, users can set up this function to accept user input for a
  1096. search string or not.  If  user  input  is  expected,  or  if  there  is  no
  1097. previously entered string, you can enter a search string at the prompt.
  1098.  
  1099. FUNCTION   <SearchReplace>  [F6]            ▓Θ╒╥╠µ╗╗      Replace
  1100.  
  1101. This function will search for a user specified string and  replace  it  with
  1102. another, starting from the current cursor position to the  end-of-file.  The
  1103. system will prompt separately for the search string and the replace  string.
  1104. As with other search functions, previous entered search or  replace  strings
  1105. will be used for prompts.
  1106.  
  1107. After you enter a string, the system starts to search for it. If a match  is
  1108. found, the cursor will move to the beginning of the string  and  redraw  the
  1109. screen. This prompt will appear on the bottom line:
  1110.  
  1111.           Replace: (Yes/No/Go/Only/Quit)?
  1112.  
  1113. Enter one of (Y/N/G/O/Q) to proceed. The options are:
  1114.  
  1115.           [Y]es  -  Replace this string  and then continue to
  1116.                     search  for the next one.  
  1117.           [N]o   -  Do  not replace this string, but continue to 
  1118.                     search for the next one.  
  1119.           [G]o   -  Replace  all matching strings found to the
  1120.                     end of file, without confirmation.  
  1121.           [O]nly -  Replace this string only and then stop.  
  1122.           [Q]uit -  Don't replace anything and stop.
  1123.  
  1124. The system will report the result on the bottom line,  whether  a  match  is
  1125. found or not.
  1126.  
  1127. This function can be used to search and replace in a marked block.
  1128.  
  1129. FUNCTION   <Replace>                        (╫╘╢»╠µ╗╗      Auto Replace)
  1130.  
  1131. Carries out Search and Replace without confirmation. It is  mainly  designed
  1132. for use in Macros. No default key is assigned to this function.
  1133.  
  1134. =============================================================================
  1135.  
  1136. 9. BLOCK OPERATION
  1137. ==================
  1138.  
  1139. This section describes NJStar's block handling functions.  These  functions,
  1140. except <SaveBlock>, are located under "Block" (┐Θ┤ª└φ)  in  the  main  menu.
  1141. <SaveBlock> is located under "File" in the main menu.
  1142.  
  1143. FUNCTION   <MarkBlock>     [Alt+B]           ┐Θ▒Ω╝╟        Mark Block
  1144.  
  1145. A block is a segment of file that is deliberately  marked  in  order  to  be
  1146. processed separately. This function will mark the character in  the  current
  1147. cursor position as the start or end of  a  block.  Mouse:  click  the  right
  1148. button once to set the mark.
  1149.  
  1150. A segment of file is marked as a block by using this function twice; at  the
  1151. beginning and the end of the block. A marked block is displayed  in  reverse
  1152. video and/or different color. You can change the block  display  style  with
  1153. NJCONFIG.EXE.
  1154.  
  1155. NJStar recognizes only one block at a time. After a block is marked,  it  is
  1156. possible to change its scope by invoking the <MarkBlock> function again.
  1157.  
  1158. Block marks will be released automatically when switching to another file.
  1159.  
  1160. FUNCTION   <MarkLine>      [Alt+L]          ╨╨▒Ω╝╟         Mark Line
  1161.  
  1162. Marks the current screen line as the start or end of a  block.  If  a  block
  1163. exists, this function will change  its  scope.  Mouse:  press  middle  mouse
  1164. button or double click the right button to use this function.
  1165.  
  1166. FUNCTION   <MarkWord>      [Alt+W]          ┤╩▒Ω╝╟         Mark Word
  1167.  
  1168. Marks the current word if the cursor is at an English word, or mark  two  or
  1169. more Chinese characters if the cursor is pointing  at  a  Chinese  word.  An
  1170. existing block will be released.
  1171.  
  1172. FUNCTION   <DefWordSet>    [Alt+Q]
  1173.  
  1174. Sets the default character set for <MarkWord>,  <WordLeft>  and  <WordRight>
  1175. as: A-Z, a-z, 0-9 and underline '_', and Chinese characters
  1176.  
  1177. FUNCTION   <AltWordSet>    [Alt+A]
  1178.  
  1179. Sets  the  alternative  character  set  for   <MarkWord>,   <WordLeft>   and
  1180. <WordRight> as:
  1181.  
  1182.          A-Z, a-z, 0-9 and underline '_', and Chinese characters
  1183.          PLUS  ! # $ %  & ` ' ( ) - . / \ @ { } ~ : ^
  1184.  
  1185. <DefWordSet> and <AltWordSet> are mainly used by  macros.  For  example,  by
  1186. default, <MarkWord> could not mark a file name such as THISFILE.TXT, but the
  1187. following macro can be used to mark a file name and open the file:
  1188.  
  1189. Meta+W Macro AltWordSet Markword DefWordSet Copy EditFile Paste Enter
  1190.  
  1191. When marking Chinese characters, each <AltWordSet> will increase the  length
  1192. of marking by one character. <DefWordSet>  will  reset  the  length  to  two
  1193. Chinese characters. The following macro uses <MarkWord> to mark four Chinese
  1194. characters and add them to the LianXiang Dictionary:
  1195.  
  1196. Meta+W Macro AltWordSet AltWordSet Markword DefWordSet AddLX
  1197.  
  1198.  
  1199. FUNCTION   <UnMarkBlock>   [Alt+U]          ╧√│²▒Ω╝╟       Unmark Block
  1200.  
  1201. Releases the current block by unmarking it. Mouse: click the left and  right
  1202. button at the same time to invoke this function.
  1203.  
  1204. FUNCTION   <MoveBlock>     [Alt+M]          ┐Θ╥╞╢»         Move Block
  1205.  
  1206. Moves the current block to  the  location  immediately  before  the  current
  1207. cursor position in the same file. The block mark will stay with the block.
  1208.  
  1209. FUNCTION   <CopyBlock>     [Alt+C]          ┐Θ╕┤╓╞         Copy Block
  1210.  
  1211. Copies the current block to the  location  immediately  before  the  current
  1212. cursor position. The block mark will be released from the original location,
  1213. moving to the newly copied text.
  1214.  
  1215. If there is no block defined in  the  current  file,  it  will  restore  the
  1216. content in the internal block buffer, stored by either <Copy> or <DelBlock>.
  1217.  
  1218. This function can be used to copy a marked block from  one  opened  file  to
  1219. another one, without the block mark.
  1220.  
  1221. FUNCTION   <Copy>          [Ctrl+W]         ┐Θ┤ó┤µ         Copy 
  1222.  
  1223. Stores the current block in the internal block buffer. The block  mark  will
  1224. be released. The stored block can be copied into a file with  <Paste>.  This
  1225. pair of functions allows to exchange text between files.
  1226.  
  1227. FUNCTION   <Paste>         [Alt+Y]          ╗╓╕┤┤ó┤µ       Paste
  1228.  
  1229. Restores  the  content  of  the  internal  block  buffer  in  the   location
  1230. immediately before the current cursor position. The restored text is  marked
  1231. as a block.
  1232.  
  1233. Since this function restores the content of the internal  block  buffer,  it
  1234. can actually restore the content of a deleted  block,  or  copy  the  latest
  1235. marked block in a file.
  1236.  
  1237. FUNCTION   <DelBlock>      [Alt+D]          ┐Θ╔╛│²         Del Block
  1238.  
  1239. Deletes the current marked block, and store it in the internal block buffer.
  1240. The  deleted  block  can  be  recovered  with   <UnDelBlock>,   <Paste>   or
  1241. <CopyBlock>. Only the last deleted block can be recovered.
  1242.  
  1243. FUNCTION   <UnDelBlock>    [Alt+Y]          ┐Θ╗╓╕┤        Undelete Block
  1244.  
  1245. Recovers a deleted block, in the location  immediately  before  the  current
  1246. cursor position. The recovered block will  be  displayed  and  marked  as  a
  1247. block.
  1248.  
  1249. This function is functionally the same as  <Paste>,  but  with  a  different
  1250. concept. The default key is the same as <Paste>.
  1251.  
  1252. FUNCTION   <GotoBlock>     [Alt+G]         ╤░╒╥▒Ω╝╟       Goto Block
  1253.  
  1254. Moves the cursor to the beginning of the marked  block,  and  redisplay  the
  1255. screen.
  1256.  
  1257. FUNCTION   <SaveBlock>     [Alt+S]          ┐Θ╨┤╬─╝■       Save Block
  1258.  
  1259. Saves a marked block to a file, with a user specified file name. The default
  1260. file name is the current file name with .BLK extention,  and  you  can enter
  1261. any valid file name, with drive name and full path if necessary. If the file
  1262. name exists  on  disk,  the  system  will  ask  for  confirmation  to  avoid
  1263. accidentally overwriting the disk file. In any case, NJStar  will  save  the
  1264. overwritten file to a .BAK file if the backup option is  on.  This  function
  1265. always saves the marked block to GB format.
  1266.  
  1267. If there is no block marked, this function will call <SaveAs> function.
  1268.  
  1269. =============================================================================
  1270.                                       (This manual continues in NJSTAR2.DOC.)
  1271.  
  1272.